package com.mmall.pay.mapper;

import com.mmall.pay.param.MmallPayConfigParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.mmall.pay.pojo.entity.PayConfigEntity;

@Mapper
public interface PayConfigMapper {

    /**
     * 选择性插入
     *
     * @param payConfigEntity PayConfigEntity
     * @return int
     */
    int insertSelective(@Param("payConfigEntity") PayConfigEntity payConfigEntity);

    /**
     * 批量插入
     *
     * @param payConfigEntitys List<PayConfigEntity>
     * @return int
     */
    int insertList(@Param("payConfigEntitys") List<PayConfigEntity> payConfigEntitys);

    /**
     * 选择性更新
     *
     * @param payConfigEntity PayConfigEntity
     * @return int
     */
    int updateByPrimaryKeySelective(@Param("payConfigEntity") PayConfigEntity payConfigEntity);

    PayConfigEntity getConfig(MmallPayConfigParam namekPayConfigParam);
}
